Skip to content

chore: update linopy requirement from <0.7,>=0.5.1 to >=0.5.1,<0.8#681

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/linopy-gte-0.5.1-and-lt-0.8
May 17, 2026
Merged

chore: update linopy requirement from <0.7,>=0.5.1 to >=0.5.1,<0.8#681
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/linopy-gte-0.5.1-and-lt-0.8

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 17, 2026

Updates the requirements on linopy to permit the latest version.

Release notes

Sourced from linopy's releases.

v0.7.0

What's Changed

New Contributors

Full Changelog: PyPSA/linopy@v0.6.4...v0.7.0

Changelog

Sourced from linopy's changelog.

Version 0.7.0

Features

Piecewise linear constraints (new)

  • Model.add_piecewise_formulation((power, x_pts), (fuel, y_pts)) adds piecewise constraints with SOS2, incremental, disjunctive, or pure-LP formulations and automatic method dispatch. Supports N-variable linking (e.g. CHP) and per-entity breakpoints; emits :class:linopy.EvolvingAPIWarning while the API stabilises.
  • One-sided bounds: append "<=" / ">=" to a tuple, e.g. (fuel, y_pts, "<="). On matching convex/concave curves this dispatches to a pure-LP chord formulation.
  • Unit-commitment gating via active: when zero, deactivates the piecewise relation.
  • PiecewiseFormulation exposes .method / .convexity (persisted across netCDF round-trip).
  • Construction helpers: linopy.breakpoints(), linopy.segments(), linopy.Slopes for per-piece slopes, and tangent_lines().

Variables

  • fix() / unfix() / fixed for fixing variables to values via equality constraints (rounds integers/binaries).
  • relax() / unrelax() / relaxed for LP relaxation; supports partial relaxation (e.g. m.variables.integers.relax()).
  • Semi-continuous variables on solvers that support them.

Model

  • Model.copy() for a deep copy of a model, optionally including the solution; supports the copy protocol.
  • SOS1 / SOS2 reformulations for solvers without native SOS, applied automatically by Model.solve() when needed.
  • format_labels() / format_infeasibilities() return strings instead of printing; deprecates the print_* siblings.

Expressions

  • Coordinate alignment between subset/superset operands: missing coords fill with 0 in arithmetic and NaN in comparisons. Fixes subset + var reverse-addition and result coords expanding past the variable's space.

Solvers

  • OETC: Model.solve() forwards solver options to the handler; OetcSettings.from_env() reads OETC_*.
  • SCIP supports quadratic problems on Windows.

Performance

  • Faster solution unpacking in Model.solve().

Bug Fixes

  • Model.solve() raises a clear ValueError when no objective is set.
  • add_variables no longer ignores coords when lower / upper are DataArrays, and handles MultiIndex coords correctly with scalar bounds.
  • Model.to_netcdf no longer fails on the scipy netCDF backend when variables or constraints have MultiIndex coords; level names are now serialised as a JSON string (the legacy list form remains readable).
  • CPLEX no longer errors on quality attributes that aren't always available.

Breaking Changes

  • google-cloud-storage and requests are now optional. Install linopy[oetc] to keep the previous behaviour.

... (truncated)

Commits
  • 3f6ab10 chore: Update release notes for v0.7.0 (#676)
  • 24ee544 docs: restructure upcoming changelog and add missing PRs (#675)
  • 73dd70b fix: serialize MultiIndex level names as JSON for scipy netCDF backend (#674)
  • a9584d2 refac(piecewise): introduce Slopes class, remove breakpoints(slopes=) mode (#...
  • 4ce1289 feat: add slopes_align to breakpoints() (#672)
  • 94a38cd feat: Unify piecewise API behind add_piecewise_formulation (sign + LP dispatc...
  • 620766d build(deps): bump the github-actions group across 1 directory with 3 updates ...
  • bd3450a fix: raise clear error when solving model without objective (#671)
  • 67f5d74 update release notes (#661)
  • d261a15 fix: compute a single IIS in Xpress infeasibility path (#658)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [linopy](https://github.com/PyPSA/linopy) to permit the latest version.
- [Release notes](https://github.com/PyPSA/linopy/releases)
- [Changelog](https://github.com/PyPSA/linopy/blob/master/doc/release_notes.rst)
- [Commits](PyPSA/linopy@v0.5.1...v0.7.0)

---
updated-dependencies:
- dependency-name: linopy
  dependency-version: 0.7.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Updating or fixing dependencies python Pull requests that update python code labels May 17, 2026
@github-actions github-actions Bot enabled auto-merge (squash) May 17, 2026 12:43
@github-actions github-actions Bot merged commit 4bf4dea into main May 17, 2026
3 checks passed
@dependabot dependabot Bot deleted the dependabot/pip/linopy-gte-0.5.1-and-lt-0.8 branch May 17, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Updating or fixing dependencies python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants